import { Collapse } from '@arco-design/web-react';
const CollapseItem = Collapse.Item;

type WealthCollapseType = {
  list: []
}

// 折叠面板组建
function WealthCollapse(props: WealthCollapseType) {
  const { list } = props
  return (
    <Collapse expandIconPosition={'right'}>
      {
        list?.length > 0 && list?.map((res) => {
          return (
            <CollapseItem
              header={res?.title || ''}
              name={res?.id}
            >
              {res?.content}
            </CollapseItem>
          )
        })
      }


    </Collapse>
  )
}

export default WealthCollapse